<html>
	<title>This is to understand array and it is functions</title>
	<body>
	<?php
		echo '<h3>Array using assignments with index</h3>';
		$districts[0]='Thanjavour';
		$districts[1]='Chennai';
		$districts[2]='Selam';
		$districts[3]='Nagai';
		$districts[4]='Trichy';
		$districts[5]='Kanchipuram';
		$districts[6]='Thiruvalluvar';
		$districts[7]='Madurai';
		$districts[8]='Nellai';
		$districts[9]='Viruthunagar';
		$districts[10]='Tuticorin';
		$districts[11]='Sivagangai';
		$districts[12]='Erode';
		$districts[13]='Coimbatore';
		
		echo '<h4>Unsorted District values in Tamil Nadu</h4>';
		foreach($districts as $district){
                    echo "$district <br />";
		}
		
		echo '<h4>Sorted District values in Tamil Nadu</h4>';
		sort($districts);	
		foreach($districts as $district){
                    echo "$district <br />";
		}

		echo '<h3>Array using array function</h3>';
		$districts = array('Thanjavour',
				   'Chennai',
				   'Selam',
				   'Nagai',
				   'Trichy',
				   'Kanchipuram',
				   'Thiruvalluvar',
				   'Madurai',
				   'Nellai',
				   'Viruthunagar',
				   'Tuticorin',
				   'Sivagangai',
				   'Erode',
				   'Coimbatore');
		
		echo '<h4>Unsorted District values in Tamil Nadu</h4>';
		foreach($districts as $district){
                    echo "$district <br />";
		}
		
		echo '<h4>Sorted District values in Tamil Nadu</h4>';
		sort($districts);
		foreach($districts as $district){
                    echo "$district <br />";
		}
		
	?>
	</body>
</html>